from main.models import *
from django.contrib import admin

class personAdmin(admin.ModelAdmin):
	list_display=('id',)
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(person,personAdmin)

class nodeAdmin(admin.ModelAdmin):
	list_display=('id',)
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(node,nodeAdmin)

class ticketAdmin(admin.ModelAdmin):
	list_display=('id',)
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(ticket,ticketAdmin)

class unitAdmin(admin.ModelAdmin):
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(unit,unitAdmin)

class newAdmin(admin.ModelAdmin):
	list_display=('id','title')
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(new,newAdmin)


class datasetAdmin(admin.ModelAdmin):
	list_display=('id','caption')
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(dataset,datasetAdmin)


class mapreduceAdmin(admin.ModelAdmin):
	list_display=('id',)
	list_filter=('id',)
	search_fields=('id',)
	ordering=('-id',)
	list_per_page=20

admin.site.register(mapreduce,mapreduceAdmin)